<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta name="renderer" content="webkit">
    <title>E.gift平台</title>
    <meta name="keywords" content="E.gift平台">
    <meta name="description" content=">E.gift平台">

    <!--[if lt IE 9]>
    <meta http-equiv="refresh" content="0;ie.html"/>
    <![endif]-->
    <%@ include file="/include/egiftlibs.jsp" %>
    <script src="${cxp}/js/egiftAngular.js"></script>
    <style type="text/css">
        .bot {
            height: 72px;
            background-color: #4B4947;
        }
    </style>
</head>
<body ng-app="homeApp" ng-controller="homeController">
<div id="top">
    <div id="top_main">
        <div id="hello">
        <span>欢迎光临！
				<a href="<c:url value="/home/to_login" />">登录</a>
				</span>
        </div>
    </div>
</div>
<div id="serach">
    <div class="logo">
        <img style="margin-top:5px;" src="${cxp}/images/logo.png" alt="">
    </div>
    <div class="sou">
        <div class="sousuo">
            <input type="text" ng-model="giftName" class="kuang" value="" style="color:#999;font-size:14px">

            <div class="souzi"><a href="#" ng-click="searchByName()">搜索</a></div>
        </div>
    </div>
</div>
<div id="daohang-wrapper">
    <div id="daohang">
        <div class="dhleft">
            <a href="#">礼品类别</a>
            <div class="lanren">
                <ul class="nav1" style="margin-bottom:0px;">
                    <li ng-repeat="giftType in giftTypes" class="li1">
                        <a href="#">{{giftType.oneTypeName}}</a>
                        <ul class="nav01">
                            <li class="li2" ng-repeat="twoType in giftType.twoLevelTypeList">
                                <a href="#" ng-click="searchByType(twoType.id)">{{twoType.name}}</a>
                            </li>
                        </ul>
                    </li>
                    <li class="li1" style="margin-bottom: 550px;">
                    </li>
                </ul>
            </div>
        </div>
        <div class="dhright">
            <ul>
                <li><a href="#" style="background: #A40000">首页</a></li>
                <li><a href="<c:url value="/home/to_login" />">礼物案例</a></li>
            </ul>
        </div>
    </div>
</div>
<div class="bg"></div>
<div id="main">
    <div class="mainleft">
        <div id="content">
            <div class="tuijian">
                <div class="right">
                    <div class="gift-wrapper">
                        <div class="gift-block" ng-repeat="gift in giftList">
                            <a target="_blank" href="<c:url value="/home/detail?id={{gift.productId}}" />">
                                <img ng-src="{{gift.imageUrl}}" alt=""/>
                            </a>
                            <div class="bottom-info">
                                <span class="text">{{gift.name}}</span>
                                <span class="cash">￥{{gift.price}}</span>
                            </div>
                        </div>
                        <div class="fenye">
                            <span ng-click="searchPagination(pageCount)">尾页</span>
                            <span ng-click="searchPagination(currentPage + 1)">下一页</span>
                            <span ng-click="searchPagination(currentPage - 1)">上一页</span>
                            <span ng-click="searchPagination(1)">首页</span>
                        </div>
                        <div class="clear"></div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>